#ifndef TOOLS_H_
# define TOOLS_H_

# include <stdlib.h>
# include <unistd.h>
# include <stdio.h>
# include <curses.h>
# include "structures.h"

/* void		printr(); /\* print & refresh *\/ */
/* int		printr(const char *fmt, ...); */

int			max2int(int				x,
				int				y);


void			display_frame(WINDOW			*w);
void			display_name(p_context			c,
				     int			i);

int			get_font_state(p_context		c);

/* display the string s
 * @ offset_line, offset_col (in new front)
 * in the window i, with the right font
 */
void			display_text(p_context			c,
				     int			zone,
				     int			offset_line,
				     int			offset_col,
				     char			*s);

char			*char2aa(char				c,
				 int				bold);

#endif /* !TOOLS_H_ */
